async function abc(i) {
  console.log(333)
  let o = await new Promise(function (resolve, reject) {
    if (i > 5) {
      resolve(666)
    }
  })
  console.log(o)
  console.log(222)
}
abc(8)
console.log(111)


function sleep(second) {
  return new Promise((resolve, reject) => {
    setTimeout(() => {
      resolve(' enough sleep~');
    }, second);
  })
}
function normalFunc() {
  console.log('normalFunc');
}
async function awaitDemo() {
  await normalFunc();
  console.log('something, ~~');
  let result = await sleep(2000);
  console.log(result);// 两秒之后会被打印出来
}
awaitDemo();